import {createBrowserRouter,Navigate} from 'react-router-dom'
import Home from '../views/Home'
import Comment from '../views/Comment'
import App from '../App'
const router = createBrowserRouter([
    {
        path:'/',
        element:<Navigate to='/app'></Navigate>
    },
    {
        path:'/app',
        element:<App></App>,
        children:[
            {
                path:'/app/home',
                element:<Home></Home>
            },
            {
                path:'/app/comment',
                element:<Comment></Comment>
            }
        ]
    },

])
export default router